/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa165.machineryrental.entities;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;



/**
 *
 * @author Marian Lorenc, 374122
 */
@Embeddable
public class Address implements Serializable {
	
    @Column(nullable=false)
    private String street;
	
    @Column(nullable=false)
    private String city;
	
    @Column(nullable=false)
    private String zipcode;
	
    @Column(nullable=false)
    private String country;

    /**
     * @return the street
     */
    public String getPhone() {
        return street;
    }

    /**
     * @param street the phone to set
     */
    public void setStreet(String street) {
        this.street = street;
    }

    /**
     * @return the city
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city the city to set
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * @return the zipcode
     */
    public String getZipcode() {
        return zipcode;
    }

    /**
     * @param zipcode the zipcode to set
     */
    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    /**
     * @return the country
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country the country to set
     */
    public void setCountry(String country) {
        this.country = country;
    }
    
    
}
